package com.softeem.score.manager.mapper;

import com.softeem.score.model.dto.ClassesDto;
import com.softeem.score.model.entity.ClassesEntity;
import com.softeem.score.model.entity.school.Classes;
import com.softeem.score.model.vo.school.ClassesVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author zhu
 * @since 2024-02-14
 */
public interface ClassesMapper {

    List<ClassesVo> findByPage(ClassesDto classesDto);

    void updateClasses(Classes classes);

    void deleteById(@Param("classesId") Long classesId);

    void saveClasses(Classes classes);

    List<ClassesEntity> selectAllClasses(@Param("collegeId") Long collegeId, @Param("majorId") Long majorId);

    long findMajorIdByClassesId(@Param("classesId") Long classesId);


}
